<%@ page import="com.lihuanyu.upcOA.conn.databaseUtil" %>
<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2015/9/2
  Time: 20:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  int i;
  request.setCharacterEncoding("utf-8");
  String priid=request.getParameter("priid");
  String answer=request.getParameter("answer");
  String id=request.getParameter("id");

  System.out.print(priid);
  System.out.print(answer);

  String sql="UPDATE `intertalk` SET `answer`='"+answer+"' WHERE id='"+priid+"'";
  databaseUtil db = new com.lihuanyu.upcOA.conn.databaseUtil();
  i=db.Update(sql);
  db.sqlclose();
  if(i==0) {%>
<script>
  alert("发送失败，请检查网络！！");
  window.history.back();
</script>
<%}
else{
%>
<script>
  alert("发送成功！！");
  window.history.back();
</script>
<%
  }
%>






<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>
